/**
 * @(#)HelloController.java, 2020/8/6.
 * <p/>
 * Copyright 2020 Netease, Inc. All rights reserved.
 * NETEASE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.lhh.myspringboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author lvhouhou(lvhouhou @ 163.com)
 */
@Controller
public class HelloController {


    @RequestMapping("/index")
    public ModelAndView index(ModelAndView modelAndView){
        modelAndView.setViewName("helloindex");
        modelAndView.addObject("name","中国");

        return modelAndView;
    }

}
